package trystero.lib.component; 

import java.util.Hashtable;

public class UnreadCount
{
   public long max;
   public Hashtable counts;
   public Hashtable timestamps;

   public void max(long max) { this.max = max; }
   public long max() { return this.max; }

   public void counts(Hashtable counts) { this.counts = counts; }
   public Hashtable counts() { return this.counts; }

   public void timestamps(Hashtable timestamps) { this.timestamps = timestamps; }
   public Hashtable timestamps() { return this.timestamps; }

   public int count(String tag) 
   {
      Object o = counts.get((Object)tag);
      return ((Integer)o).intValue();
   }

   public long timestamp(String tag) 
   {
      Object o = counts.get((Object)tag);
      return ((Long)o).longValue();
   }
}
